package com.example.studyllm.component.flow.node;

import com.example.studyllm.utils.HttpQueryParams;
import io.github.czelabueno.jai.workflow.langchain4j.AbstractStatefulBean;
import io.github.czelabueno.jai.workflow.node.Node;
import lombok.NonNull;
import java.util.function.Function;

public class HttpNode<T extends AbstractStatefulBean> extends Node<T, String> {
    public HttpNode(@NonNull String name, @NonNull Function<T, String> function) {
        super(name, function);
    }


    public static <T extends AbstractStatefulBean> HttpNode<T> from(String name, HttpQueryParams httpQueryParams, Function<T, String> doUserMessage) {
        return new HttpNode(name,  doUserMessage);
    }
}
